﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Composite.Modularity;
using Jbe.TestSuite.Help.Interface;
using Jbe.TestSuite.Infrastructure.Interface;
using Jbe.TestSuite.Help.Domain;
using Microsoft.Practices.Composite.Regions;
using Jbe.TestSuite.Help.Properties;
using System.Reflection;
using Jbe.TestSuite.Help.Presentation;
using Jbe.Composite.Extensions;
using Jbe.TestSuite.Help.Applications;

namespace Jbe.TestSuite.Help
{
    internal class Module : IModule
    {
        private readonly IApplicationContainer container;
        

        public Module(IApplicationContainer container, IRegionManager regionManager, IUIElementCreationService uiElementCreationService)
        {
            this.container = container;
        
            container.RegisterType<IDynamicHelp, DynamicHelpService>(true);
            container.RegisterType<IHelpView, HelpView>(true);
        }


        public void Initialize()
        {
            container.Resolve<ModuleController>().Initialize();
        }
    }
}
